import request from '@/util/request'

const prefixUrl = "memberReceiveAddress/"

/**
 * 获取收货地址列表
 * @returns {*}
 */
export function getAddressListApi() {
    return request({
        method: 'get',
        url: prefixUrl + 'get/list'
    })
}

/**
 * 添加一条收货地址信息
 * @param data
 * @returns {*}
 */
export function addAddressApi(data) {
    return request({
        method: 'post',
        url: prefixUrl + 'add',
        data
    })
}

/**
 * 批量删除收货地址记录
 * @param data
 * @returns {*}
 */
export function delAddressLisApi(data) {
    return request({
        method: 'delete',
        url: prefixUrl + 'del/list',
        data
    })
}

/**
 * 获取默认收货地址
 * @returns {*}
 */
export function getDefaultAddressApi() {
    return request({
        method: 'get',
        url: prefixUrl + 'get/default',
    })
}
